package service.impl;

import dao.LevelDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import po.Level;
import service.LevelService;

import java.util.List;

@Service
@Transactional
public class LevelServiceImpl implements LevelService {
    // 注解注入 LevelDao
    @Autowired
    private LevelDao levelDao;

    @Override
    public List<Level> allLevel() {
        return this.levelDao.allLevel();
    }
}
